﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

using YouHP.Model;
using YouHP.Model.Group;

namespace YouHP.IDAL
{
    public interface IGroupType
	{
		#region basic operations
		bool AddGroupType(GroupTypeInfo info);
		bool UpdateGroupType(GroupTypeInfo info);
		bool DeleteGroupType(int[] ids);
		GroupTypeInfo GetGroupTypeInfo(int id);
		#endregion
		
		#region list and search operations
		List<GroupTypeInfo> GetGroupTypeList(int pageSize, int pageIndex, out int count);
		/*search for management*/
        List<GroupTypeInfo> GetGroupTypeByName(int pageSize, int pageIndex, string keyword, out int count);
		#endregion
	}
}